    {if $smarty.get.act eq "edit_trans"}
    	{include file="BgcmsMultiLanguage/edit_multilanguage.tpl"}
    {elseif $smarty.get.act eq "new_trans"}
    	{include file="BgcmsMultiLanguage/create_multilanguage.tpl"}
  	{else}
   
	<div class="wrap">
     <div id="ajaxResponse1" class="ajaxResponse" {if $smarty.cookies.message != NULL}style="display:block"{/if}>{$smarty.cookies.message}</div>
        <h2>{TranslateTag}B_LABEL_TRANSLATOR_MANAGEMENT{/TranslateTag}</h2>
        <p>
            <a href="?{$smarty.server.QUERY_STRING}&act=new_trans">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
    <div align="left"  style="margin:0 0 10px 0">
        <div style="float:left; width:400px;">
            <form name="searchlang" id="searchlang" method="post">
            	<input type="hidden" name="act" value="search" />
                <input type="text" name="keysearch" id="keysearch">	
                <select name="typesearch" id="typesearch">
                    <option value="all">All</option>
                    <option value="language_const_id">Keylang</option>
                    {foreach name=lang from=$ALL_LANGUAGE item=item}
                    <option value="{$item->name_lang}">{$item->name_lang}</option>
                    {/foreach}
                </select>
                <span class="submit">
                	<input type="image" name="submit" src="../view/admin/images/object_search.png" value="" />
                </span>
            </form>
    	</div>
        <div align="right">
        	<form name="sortlang" id="sortlang" method="post">
            	<input type="hidden" name="sort" value="true" />
                <select name="sorttype" id="sorttype" onChange="javascript:document.getElementById('sortlang').submit()">
                    <option value="">Sort</option>
                    <option value="DESC" {if $smarty.session.sort eq "DESC"} selected{/if} >DESC</option>
                    <option value="ASC" {if $smarty.session.sort eq "ASC"} selected{/if}>ASC</option>
                </select>
            </form>	
        </div> 
        <div style="clear:both">
        </div>       
    </div>
		 <div id="ajaxResponse1" class="ajaxResponse"></div>
    	<table width="100%" cellspacing="2" cellpadding="5" class="widefat">
        <thead>
		<tr>
			<th width="20%" align="left" valign="middle">
            	MultiLanguage
            </th>
            {foreach name=lang from=$ALL_LANGUAGE item=item}
			<th align="left" valign="middle">
            	{$item->name_lang}
            </th>
            {/foreach}
            <th colspan="2" style="text-align:center" valign="middle">
            	{TranslateTag}B_LABEL_ACTION{/TranslateTag}
            </th>
		</tr>
        </thead>
        <tbody id="listmulti">
         
			{foreach name=lang from=$LISTLANG.data item=item}
				<tr id="rowlang_{$item->language_const_id}" class="{cycle values=,alternate}">
					<td align="left">{$item->language_const_id}</td>
                    {foreach name=name_lang key=name_lang from=$ALL_LANGUAGE item=lang}
					<td align="left">
                    	{assign var="trans" value=$lang->name_lang}
						{$item->$trans}
					</td>
                    {/foreach} 
                    <td>
						<a href="?module={$smarty.get.module}&sub={$smarty.get.sub}&act=edit_trans&id={$item->language_const_id}" class='edit'><img src="../view/admin/images/object_edit.png" alt="Edit" /></a>
					</td>
					<td>
						<a href="javascript:void(0);" onClick="onDeleteMultiLanguage('?module={$smarty.get.module}&sub={$smarty.get.sub}', '{$item->language_const_id}')" class='delete'>
                        	<img src="../view/admin/images/object_delete.png" alt="Delete" />
                        </a>
					</td>
				</tr>
			{/foreach}
           
		</tbody>
		</table>
		<p>
            <a href="?{$smarty.server.QUERY_STRING}&act=new_trans">
            	<img src="../view/admin/images/object_create.png" alt="Create" />
            </a>
        </p>
        <div style="margin:20px 0 0 0;">			
              <div style="width:300px; float:left" align="left"> 
              {$LISTLANG.TOTAL} of {$LISTLANG.TOTALDATA}
                     
              </div>			
              <div style="width:300px; text-align:right; float:right" >{$LISTLANG.FIRST} {$LISTLANG.PRE}&nbsp;{$LISTLANG.LISTPAGE} of&nbsp; {$LISTLANG.TOTALPAGE} &nbsp;                   
                  <select onChange="javascript:window.location='{$LISTLANG.LINK}&{$LISTLANG.PATHNAME}='+this.value">
                    {$LISTLANG.COMBOPAGE}                     
                  </select>&nbsp;{$LISTLANG.NEXT} {$LISTLANG.LAST}         
              </div>		
       </div>
	</div>
    {/if}
